package cn.fuck;


import java.util.ArrayDeque;
import java.util.Deque;
import java.util.Queue;

public class testQueue {
    public static void main(String[] args) {
        Deque<String> arrayDeque = new ArrayDeque<>();
        arrayDeque.add("first");
        arrayDeque.add("second");
        arrayDeque.add("last");
        System.out.println(arrayDeque.getLast());

    }
}
